- 添加另一个 Collision with Shape。将事件处理器前面的名称更改为 ball。
- 更改第一个 if 语句以测试与 "green"的碰撞。删除 .say() 指令。
- 在第一个 if 语句内部,让 sprite Go To 控制台中央,并设置 Sprite Gravity Off。
- 使用 Show Sprite 以显示 win_text。
- 使用 Set Text 将 win_text 更改为 "Player 1 wins!"。
To navigate the page using the TAB key, first press ESC to exit the code editor.